<?xml version="1.0" ?>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
  <xsl:output method="html" />
  <xsl:include href="Common.xsl"/>

  <xsl:template match="/">
    <html>
      <head>
        <title>Current conditions</title>
      </head>
      <body>
        <xsl:apply-templates />
      </body>
    </html>
  </xsl:template>

  <xsl:template name="ccWeather" match="weather">
    <xsl:apply-templates select="head"/>
    <xsl:apply-templates select="loc"/>
    <xsl:apply-templates select="cc"/>
    <xsl:apply-templates select="lnks"/>
  </xsl:template>

  <xsl:template match="cc">
    <!--LastObservationDateTime: <xsl:value-of select="lsup" /> <br />-->
    <!--ObservationStationName: <xsl:value-of select="obst" /> <br />-->
    Temperature: <xsl:value-of select="tmp" />° <xsl:copy-of select="$TemperatureUnit" /> <br />
    Feels Like: <xsl:value-of select="flik" />° <xsl:copy-of select="$TemperatureUnit" /> <br />
    Description: <xsl:value-of select="t" /> <br />
    <!--WeatherIconCode <xsl:value-of select="icon" /> <br />-->
    <xsl:apply-templates select="bar"/>
    <xsl:apply-templates select="wind"/>

    Humidity: <xsl:value-of select="hmid" /> %<br />
    <xsl:apply-templates select="uv"/>
    Visibility: <xsl:value-of select="vis" /> <xsl:text xml:space="default"> </xsl:text> <xsl:copy-of select="$DistanceUnit" /> <br />
    Dew Point: <xsl:value-of select="dewp" />° <br />
    <xsl:apply-templates select="moon"/>
  </xsl:template>

  <xsl:template match="bar">
    Pressure: <xsl:value-of select="r" /> <xsl:copy-of select="$PreasureUnit" /> - <xsl:value-of select="d" /><br />
  </xsl:template>

  <xsl:template match="moon">
    Moonphase: <xsl:value-of select="t" /> <br />
    <!--MoonIconCode <xsl:value-of select="icon" /> <br />-->
  </xsl:template>

  <xsl:template match="uv">
    UVIndex: <xsl:value-of select="i" /> - <xsl:value-of select="t" /> <br />
  </xsl:template>

</xsl:stylesheet>
